package com.xdcplus.web.mapper.alarm;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.alarm.ToolAlarmGroupTool;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备告警组与设备关联表(ToolAlarmGroupTool)表数据库访问层
 *
 * @author bullion.yan
 * @since 2024-06-05 16:16:14
 */
public interface ToolAlarmGroupToolMapper extends IBaseMapper<ToolAlarmGroupTool> {


    public Integer deleteByGroupIdFk(Long classificationIdFk);


    List<Long> queryToolIdByGroupIdFk(Long groupIdFk);

    public List<ToolAlarmGroupTool> queryByGroupIdFkAndToolIdFkList(@Param("groupIdFk") Long groupIdFk, @Param("toolIdFkList") List<Long> toolIdFkList);

    public List<Long> queryToolIdByFactoryIdAndGroupIdFk(@Param("factoryId") Long factoryId, @Param("groupIdFk") Long groupIdFk);

}
